// @ts-ignore
/* eslint-disable */
import {request} from "../../utils/request";

/** 获取 线索上报  - 选题计划 提交 分页  POST */
export async function getCuesActivePage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<CuesActiveData.ActivePage[]>>('/cues/active/page', {
    method: 'POST',
    data: options || {},
  });
}

/** 保存 线索上报  - 选题计划 提交  POST */
export async function saveCuesActive(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/active/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 获取 线索上报  - 选题计划 提交 详情  POST */
export async function getCuesActiveDetails(options?: { [key: string]: any   }) {
  return request<BaseResponseBean.response<string>>('/cues/active/details', {
    method: 'POST',
    data: options || {},
  });
}

/** 获取 上报录用情况  - 选题计划  详情  POST */
export async function getCuesActiveSelectDetails(options?: { [key: string]: any   }) {
  return request<BaseResponseBean.response<string>>('/cues/adopt/select', {
    method: 'POST',
    data: options || {},
  });
}

/** 录用  POST */
export async function adoptActive(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesAdoptData.Adopt>>('/cues/active/adopt', {
    method: 'POST',
    data: options || {},
  });
}

/** 评分  POST */
export async function adoptActiveScore(options?: { [key: string]: any }) {
  return request('/cues/active/score', {
    method: 'POST',
    data: options || {},
  });
}

/**获取 宣传刊播 组织 列表 POST */
export async function treeOrganization(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<PropagateData.Organization[]>>(
    '/cues/active/organization/tree',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 录用列表  POST */
export async function adoptAccountList(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesAdoptData.Adopt>>('/cues/adopt/account/list', {
    method: 'POST',
    data: options || {},
  });
}

/** 录用库列表  POST */
export async function adoptPageList(options?: { [key: string]: any }) {
  return request('/cues/adopt/page', {
    method: 'POST',
    data: options || {},
  });
}

/** 获取可以指派的账户列表  POST */
export async function adoptInstructAccountPageList(options?: { [key: string]: any }) {
  return request('/cues/adopt/instruct/account/page', {
    method: 'POST',
    data: options || {},
  });
}

/** 设置更新指派用户  POST */
export async function adoptInstructAccountUpdate(options?: { [key: string]: any }) {
  return request('/cues/adopt/instruct/account/update', {
    method: 'POST',
    data: options || {},
  });
}
/**
 * 收录库 更新 收录人
 * @param options
 * @returns
 */
export async function updateAdoptInstructDescribes(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/adopt/instruct/describes/update', {
    method: 'POST',
    data: options || {},
  });
}

